package com.bw.service.orders.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.entity.orders.PiOrderItem;
import com.bw.mapper.orders.PiOrderItemMapper;
import com.bw.req.OrderItemCom;
import com.bw.service.orders.IPiOrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lizhengqian
 * @since 2020-06-19
 */
@Service
public class PiOrderItemServiceImpl extends ServiceImpl<PiOrderItemMapper, PiOrderItem> implements IPiOrderItemService {
    @Resource
    PiOrderItemMapper piOrderItemMapper;


    @Autowired
    private PiOrderItemMapper orderItemMapper;

    @Override
    public List<PiOrderItem> getByOrderId(Long id) {
        return piOrderItemMapper.getByOrderId(id);

    }
}
